package entities;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;


/**
 * The persistent class for the Propietary_organisateur database table.
 * 
 */
@Entity
public class Propietary_organisateur implements Serializable {
	private static final long serialVersionUID = 1L;

	@EmbeddedId
	private Propietary_organisateurPK id;

    @Temporal( TemporalType.DATE)
	@Column(name="date_inscription")
	private Date dateInscription;

	//bi-directional many-to-one association to Adminstrator
    @ManyToOne
	@JoinColumn(name="Adminstrator_admin", insertable=false, updatable=false)
	private Adminstrator adminstrator;

	//bi-directional many-to-one association to Propietary
    @ManyToOne
	@JoinColumn(name="Propietary_boss", insertable=false, updatable=false)
	private Propietary propietary;

    public Propietary_organisateur() {
    }

	public Propietary_organisateurPK getId() {
		return this.id;
	}

	public void setId(Propietary_organisateurPK id) {
		this.id = id;
	}
	
	public Date getDateInscription() {
		return this.dateInscription;
	}

	public void setDateInscription(Date dateInscription) {
		this.dateInscription = dateInscription;
	}

	public Adminstrator getAdminstrator() {
		return this.adminstrator;
	}

	public void setAdminstrator(Adminstrator adminstrator) {
		this.adminstrator = adminstrator;
	}
	
	public Propietary getPropietary() {
		return this.propietary;
	}

	public void setPropietary(Propietary propietary) {
		this.propietary = propietary;
	}
	
}